﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ForumFriendGroupsEdit.ascx.cs"
    Inherits="Micronet.OpenWeb.OpenWeb.Admin.Views.Shared.Forum.ForumFriendGroupsEdit" %>
<owc:OwDetailsView ID="ForumFriendGroupdv" runat="server" AutoGenerateRows="False"
    DataKeyNames="ForumFriendGroupID" DataSourceID="ForumFriendGroupOds" OwNotificationID=""
    EnableModelValidation="True">
    <Fields>
        <asp:TemplateField>
            <InsertItemTemplate>
                <fieldset>
                    <legend>
                        <owc:OwR ID="GeneralInfoOwR" runat="server" OwText="GeneralInfo"></owc:OwR>
                    </legend>
                    <div>
                        <owac:OwDetailCommonGroup ID="DetailCommonGroup" runat="server" OwAuthorVisible="false"
                            OwCategoryVisible="false" OwSourceVisible="false" OwBindLanguageValue='<%#Eval("LanguageCode")%>'
                            OwBindContinentLocalityValue='<%#Eval("ContinentID") %>' OwBindCountryLocalityValue='<%#Eval("CountryID") %>'
                            OwBindDistrictLocalityValue='<%#Eval("DistrictID") %>' OwBindProvinceLocalityValue='<%#Eval("ProvinceID") %>'
                            OwBindWardLocalityValue='<%#Eval("WardID")%>' />
                    </div>
                </fieldset>
                <fieldset>
                    <legend><span>
                        <owc:OwR ID="InfoLabelOwR" runat="server" OwText="InfoLabel"></owc:OwR>
                    </span></legend>
                    <div>
                        <table width="100%">
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="TitleLabelOwR" runat="server" OwText="Name"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="txtName" runat="server" Width="300px" OwDefaultValue=""
                                        OwUsedForEdit="False" Text='<%# Bind("Name") %>' LabelWidth="">
                                    </owc:OwTextBox>
                                    <asp:RequiredFieldValidator Text="*" ID="RequiredFieldValidator1" runat="server"
                                        ErrorMessage=" <%$ OwR: TitleNotEmpty %>" ControlToValidate="txtName"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="ThumbImagesOwR" runat="server" OwText="ThumbImage"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwEditor ID="OwThumbImageEditor" runat="server" OwStoragePlace="Common" Style="position: relative;"
                                        OwEditorType='<%# Bind("ThumbImage") %>' OwBindValue='<%# Bind("ThumbImage") %>'
                                        SkinID="OwEditorInsertImageOnly">
                                    </owc:OwEditor>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="ContentLabelOwR" runat="server" OwText="ContentLabel"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwEditor ID="Detailtxt" runat="server" OwStoragePlace="Common" Content='<%# Bind("Description") %>'
                                        SkinID="OwEditorFull">
                                    </owc:OwEditor>
                                    <asp:RequiredFieldValidator Text="*" ID="RequiredFieldValidator3" runat="server"
                                        ControlToValidate="Detailtxt" ErrorMessage=" <%$ OwR: DetailNotEmpty %>"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="CompanyOwR" runat="server" OwText="Company" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwComboBox ID="CompanyCbb" runat="server" DataTextField="Name" DataValueField="CompanyID"
                                        EmptyMessage="Empty" DataSourceID="CompanyOds" SkinID="OwComboBox">
                                    </owc:OwComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="ParentIDOwR" runat="server" OwText="ParentID"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwComboBox ID="ParentIDCbb" runat="server" DataTextField="Name" DataValueField="ForumFriendGroupID"
                                        EmptyMessage="Empty" DataSourceID="ForumFriendGroupParentOds" SkinID="OwComboBox">
                                    </owc:OwComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="UserNametxt" runat="server" Width="300px" OwDefaultValue='<%# Membership.GetUser()!=null ? Membership.GetUser().ProviderUserKey:"" %>'
                                        OwUsedForEdit="False" Text='<%# Bind("UserID") %>' Visible="false">
                                    </owc:OwTextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <fieldset>
                    <legend><span>
                        <owc:OwR ID="OwRComman" runat="server" OwText="CommandLabel"></owc:OwR>
                    </span></legend>
                    <div>
                        <table>
                            <tr>
                                <td>
                                    <asp:Literal ID="DeletedLabel" runat="server" Text="<%$ OwR: Delete%>" />:
                                </td>
                                <td>
                                    <owc:OwCheckBox ID="IsDeletedCheckBox" runat="server" Checked='<%# Bind("IsDeleted") %>'
                                        AutoPostBack="True" Text='<%# Eval("ForumFriendGroupID") %>' CssClass="HiddenText" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <br />
                <br />
                <br />
            </InsertItemTemplate>
            <EditItemTemplate>
                <fieldset>
                    <legend>
                        <owc:OwR ID="GeneralInfoOwR" runat="server" OwText="GeneralInfo"></owc:OwR>
                    </legend>
                    <div>
                        <owac:OwDetailCommonGroup ID="DetailCommonGroup" runat="server" OwAuthorVisible="false"
                            OwCategoryVisible="false" OwSourceVisible="false" OwBindLanguageValue='<%#Eval("LanguageCode")%>'
                            OwBindContinentLocalityValue='<%#Eval("ContinentID") %>' OwBindCountryLocalityValue='<%#Eval("CountryID") %>'
                            OwBindDistrictLocalityValue='<%#Eval("DistrictID") %>' OwBindProvinceLocalityValue='<%#Eval("ProvinceID") %>'
                            OwBindWardLocalityValue='<%#Eval("WardID")%>' />
                    </div>
                </fieldset>
                <fieldset>
                    <legend><span>
                        <owc:OwR ID="InfoLabelOwR" runat="server" OwText="InfoLabel"></owc:OwR>
                    </span></legend>
                    <div>
                        <table width="100%">
                            <tr>
                                <td class="leftcolumn">
                                    <owc:OwR ID="TitleLabelOwR" runat="server" OwText="Name"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="txtName" runat="server" Width="300px" OwDefaultValue=""
                                        OwUsedForEdit="False" Text='<%# Bind("Name") %>' LabelWidth="">
                                    </owc:OwTextBox>
                                    <asp:RequiredFieldValidator Text="*" ID="RequiredFieldValidator1" runat="server"
                                        ErrorMessage=" <%$ OwR: TitleNotEmpty %>" ControlToValidate="txtName"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="ThumbImagesOwR" runat="server" OwText="ThumbImage"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwEditor ID="OwThumbImageEditor" runat="server" OwStoragePlace="Common" Style="position: relative;"
                                        OwEditorType="OnlyInsertImage" OwBindValue='<%# Bind("ThumbImage") %>' SkinID="OwEditorInsertImageOnly">
                                    </owc:OwEditor>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="ContentLabelOwR" runat="server" OwText="ContentLabel"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwEditor ID="Detailtxt" runat="server" OwStoragePlace="Common" Style="position: relative;"
                                        Content='<%# Bind("Description") %>' SkinID="OwEditorFull">
                                    </owc:OwEditor>
                                    <asp:RequiredFieldValidator Text="*" ID="RequiredFieldValidator3" runat="server"
                                        ControlToValidate="Detailtxt" ErrorMessage=" <%$ OwR: DetailNotEmpty %>"></asp:RequiredFieldValidator>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="CompanyOwR" runat="server" OwText="Company" OwSuffix=":"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwComboBox ID="CompanyCbb" runat="server" DataTextField="Name" DataValueField="CompanyID"
                                        EmptyMessage="Empty" DataSourceID="CompanyOds" SkinID="OwComboBox">
                                    </owc:OwComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwR ID="ParentIDOwR" runat="server" OwText="ParentID"></owc:OwR>
                                </td>
                                <td>
                                    <owc:OwComboBox ID="ParentIDCbb" runat="server" DataTextField="Name" DataValueField="ForumFriendGroupID"
                                        EmptyMessage="Empty" DataSourceID="ForumFriendGroupParentOds" SkinID="OwComboBox">
                                    </owc:OwComboBox>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    <owc:OwTextBox SkinID="owTextBox" ID="UserNametxt" runat="server" Width="300px" OwDefaultValue='<%# Membership.GetUser()!=null ? Membership.GetUser().ProviderUserKey:"" %>'
                                        OwUsedForEdit="False" Text='<%# Bind("UserID") %>' Visible="false">
                                    </owc:OwTextBox>
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <fieldset>
                    <legend><span>
                        <owc:OwR ID="OwRComman" runat="server" OwText="CommandLabel"></owc:OwR>
                    </span></legend>
                    <div>
                        <table>
                            <tr>
                                <td>
                                    <asp:Literal ID="DeletedLabel" runat="server" Text="<%$ OwR: Delete%>" />:
                                </td>
                                <td>
                                    <owc:OwCheckBox ID="IsDeletedCheckBox" runat="server" Checked='<%# Bind("IsDeleted") %>'
                                        AutoPostBack="True" Text='<%# Eval("ForumFriendGroupID") %>' CssClass="HiddenText" />
                                </td>
                            </tr>
                        </table>
                    </div>
                </fieldset>
                <br />
                <br />
                <br />
            </EditItemTemplate>
        </asp:TemplateField>
        <asp:TemplateField ShowHeader="False">
            <EditItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    </owc:OwButton>
                    <owc:OwButton ID="EditUpdateThenCloseButton" runat="server" CommandName="Update"
                        Text='<%$OwR:Update %>' OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;
                    <owc:OwConfirmButton ID="EditDeleteButton" runat="server" CausesValidation="True"
                        CommandName="Delete" Text="<%$OwR:Delete %>" SkinID="OwConfirmButton">
                    </owc:OwConfirmButton>
                    &nbsp;<owc:OwButton ID="EditCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </EditItemTemplate>
            <InsertItemTemplate>
                <fieldset style="position: fixed; bottom: 0px; right: 0px; width: 100%">
                    <legend>
                        <asp:Label ID="Label4" runat="server" EnableViewState="false" Text="<%$ OwR: Action %>" /></legend>
                    <owc:OwButton ID="InsertInsertButton" runat="server" CommandName="Insert" Text="<%$OwR:Insert %>"
                        OnClientClicking="showNotification">
                    </owc:OwButton>
                    &nbsp;<owc:OwButton ID="InsertCancelButton" runat="server" CausesValidation="False"
                        CommandName="Cancel" Text="<%$OwR:Cancel %>">
                    </owc:OwButton>
                </fieldset>
            </InsertItemTemplate>
        </asp:TemplateField>
    </Fields>
</owc:OwDetailsView>
<owc:OwObjectDataSource ID="ForumFriendGroupOds" runat="server" OldValuesParameterFormatString="original_{0}"
    SelectMethod="OwGetEntity" TypeName="Micronet.OpenWeb.Com.BLL.OwForumFriendGroupsBLL"
    DataObjectTypeName="Micronet.OpenWeb.Entity.OwForumFriendGroupsEntity" DeleteMethod="OwDelete"
    InsertMethod="OwInsert" UpdateMethod="OwUpdate">
    <SelectParameters>
        <asp:QueryStringParameter Name="forumFriendGroupID" QueryStringField="ID" Type="Int64" />
    </SelectParameters>
</owc:OwObjectDataSource>
<owc:OwObjectDataSource ID="ForumFriendGroupParentOds" runat="server" OldValuesParameterFormatString="original_{0}"
    SelectMethod="OwGetAll" TypeName="Micronet.OpenWeb.Com.BLL.OwForumFriendGroupsBLL">
    <SelectParameters>
        <asp:Parameter Name="sortClause" Type="String" />
        <asp:Parameter Name="sortDirection" Type="String" />
        <asp:Parameter Name="startRowIndex" Type="Int32" />
        <asp:Parameter Name="maximumRows" Type="Int32" />
    </SelectParameters>
</owc:OwObjectDataSource>
<owc:OwObjectDataSource ID="CompanyOds" runat="server" DataObjectTypeName="Micronet.OpenWeb.Entity.OwCompaniesEntity"
    DeleteMethod="OwDelete" InsertMethod="OwInsert" OldValuesParameterFormatString="original_{0}"
    SelectMethod="OwGetAll" TypeName="Micronet.OpenWeb.Com.BLL.OwCompaniesBLL" UpdateMethod="OwUpdate">
    <SelectParameters>
        <asp:Parameter Name="sortClause" Type="String" />
        <asp:Parameter Name="sortDirection" Type="String" />
        <asp:Parameter Name="startRowIndex" Type="Int32" />
        <asp:Parameter Name="maximumRows" Type="Int32" />
    </SelectParameters>
</owc:OwObjectDataSource>
